package com.foreveross.fetl.core.domain.freight;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.foreveross.fetl.common.domain.BaseEntity;

@Entity
@Table(name="log_message")
public class LogMessage extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8438134546506937236L;
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;
	
	@Column(name="EXECUTE_CLASS")
	private String executeClass;//执行的类
	
	@Column(name="EXECUTE_NAME")
	private String executeName;//名称
	
	@Column(name="EXECUTE_TIME")
	private Date executeStartTime;//开始时间
	
	@Column(name="EXECUTE_END_TIME")
	private Date executeEndTime;//结束时间
	
	@Column(name="EXECUTE_TYPE")
	private int executeType;//类型 1 开始  2结束 3 错误
	
	@Column(name="RESULT")
	private String result;//执行结果 
	
	@Column(name="ROW_KEY")
	private String rowKey;
	
	@Column(name="TASKS_NUMBER")
	private int tasksNumber;//任务总数
	
	@Column(name="FAILURES_NUMBER")
	private int failuresNumber;//失败数
	
	@Column(name="INSERT_NUMBER")
	private int insertNumber; //插入条数 
	
	@Column(name="EXECUTe_TOTAL_TIME")
	private Long  executeTotalTime; //执行总时间
	
	@Column(name="TASK_TIME")
	private String taskTime;//处理的时期时间

	
	
	public String getTaskTime() {
		return taskTime;
	}

	public void setTaskTime(String taskTime) {
		this.taskTime = taskTime;
	}

	public Long getExecuteTotalTime() {
		return executeTotalTime;
	}
	
	public void setExecuteTotalTime(Long executeTotalTime) {
		this.executeTotalTime = executeTotalTime;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getExecuteClass() {
		return executeClass;
	}

	public void setExecuteClass(String executeClass) {
		this.executeClass = executeClass;
	}

	public String getExecuteName() {
		return executeName;
	}

	public void setExecuteName(String executeName) {
		this.executeName = executeName;
	}



	public Date getExecuteStartTime() {
		return executeStartTime;
	}

	public void setExecuteStartTime(Date executeStartTime) {
		this.executeStartTime = executeStartTime;
	}

	public int getExecuteType() {
		return executeType;
	}

	public void setExecuteType(int executeType) {
		this.executeType = executeType;
	}

	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	public String getRowKey() {
		return rowKey;
	}

	public void setRowKey(String rowKey) {
		this.rowKey = rowKey;
	}

	public int getTasksNumber() {
		return tasksNumber;
	}

	public void setTasksNumber(int tasksNumber) {
		this.tasksNumber = tasksNumber;
	}

	public int getFailuresNumber() {
		return failuresNumber;
	}

	public void setFailuresNumber(int failuresNumber) {
		this.failuresNumber = failuresNumber;
	}

	public int getInsertNumber() {
		return insertNumber;
	}

	public void setInsertNumber(int insertNumber) {
		this.insertNumber = insertNumber;
	}

	public Date getExecuteEndTime() {
		return executeEndTime;
	}

	public void setExecuteEndTime(Date executeEndTime) {
		this.executeEndTime = executeEndTime;
	}
	
	
}
